package com.itheima.test.code14;

/**
 * @author df
 * @date 2021/8/22
 */
public class Demo06 {
    public static void main(String[] args) {
        //线程任务
        Ticket02 ticket02 = new Ticket02();
        //线程对象
        Thread t1 = new Thread(ticket02);
        Thread t2 = new Thread(ticket02);


        t1.setName("窗口一");
        t2.setName("窗口二");

        t1.start();
        t2.start();


    }
}
